package cn.lf.constant;

/**
 * 响应码枚举类
 * @author guoyy
 */
public enum ResponseCodeEnum {
    SUCCESS(200,"成功"),
    SYS_ERROR(500,"系统内部异常"),
    NO_ACCESS(403,"无权限"),
    UN_LOGIN(401,"未登录");

    private int code;
    private String msg;

    ResponseCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
